package ua.kpi_java_training.zabrodskyi.module2;

/**
 * Program simulation of the behavior of live organisms (fishes) in some water
 * pool.
 * 
 * @author Maksym Zabrodskyi
 * @version 1.08 20-Jun-2013
 */
public class Main {

	/**
	 * This method call methods of control of program, such as initialization,
	 * save parameters to statistics, run life in pool, print statistics.
	 * 
	 * @param args
	 *            - not used.
	 */
	public static void main(String[] args) {
		Initialization settings = new Initialization();
		settings.setUp();
		Statistics statistics = new Statistics(settings.getPool());
		statistics.saveFirstParameters(settings);
		statistics.printFirstStatistics();
		Life life = new Life(settings.getLengthLife());
		life.run(settings.getPool());
		statistics.calculateLastParameters();
		statistics.printLastStatistics();
	}

}
